//所有接口的服务层
import {axios,get,post} from "@/utils/axios"

//获取验证码
export const getcsrftoken = params => get("/vue/gettoken",params);
//登录
export const signinAjax = params => post("/vue/signin",params);
//获取个人信息
export const getuserinfo = params => post("/vue/getuserinfo",params);
//添加用户
export const adduserAjax = params => post("/vue/adduser",params);
//查询用户
export const getuserlist = params => post("/vue/getuserlist",params);
//删除用户
export const deluserAjax = params => post("/vue/deluser",params);
//修改用户
export const updateuserone = params => post("/vue/updateuserone",params);


//addtianxie 添加查寝记录
export const addtianxie = params => post("/vue/addtianxie",params);
//查询查寝记录 
export const getmytianxielist = params => post("/vue/mytianxielist",params);
//删除查寝记录 
export const delTheList = params => post("/vue/delTheList",params);
//修改查寝记录  
export const updatetianxieone = params => post("/vue/updatetianxieone",params);


//banner
export const gethomebanner2 = params => post("/vue/gethomebanner2",params);


//addadvise2 添加报修
export const addadvise2 = params => post("/vue/addadvise2",params);
//getadviselist2 报修列表
export const getadviselist2 = params => post("/vue/getadviselist2",params);
//delAdviseOne2 报修删除
export const delAdviseOne2 = params => post("/vue/delAdviseOne2",params);
//getadvisebyid2 报修详情
export const getadvisebyid2 = params => post("/vue/getadvisebyid2",params);
//updateadvisebyid2 修改报修详情
export const updateadvisebyid2 = params => post("/vue/updateadvisebyid2",params);
//addreply2 回复
export const addreply2 = params => post("/vue/addreply2",params);


//goodlist 商品列表
export const getgoodlist = params => post("/vue/goodlist",params);
//goodlist 商品分类
export const getgoodtypelist = params => post("/vue/goodtypelist",params);
//getgoodone 商品详情
export const getgoodone = params => post("/vue/getgoodone",params);
//addtocart 添加购物车 
export const addtocartajax = params => post("/vue/addtocart",params);
//getmycart 我的购物车 
export const getmycart = params => post("/vue/getmycart",params);
//changecartcount 修改数量
export const changecartcount = params => post("/vue/changecartcount",params);
//changecartcount 修改选中
export const changecartcheck = params => post("/vue/changecartcheck",params);
//delcartone 删除
export const delcartone = params => post("/vue/delcartone",params);
//delcartcheck 批量删除
export const delcartcheck = params => post("/vue/delcartcheck",params);


//uploadpic 上传头像
export const uploadpic = params => post("/vue/uploadpic",params);







